package com.hmall.api.trade;

import com.hmall.api.trade.fallback.TradeClientFallbackFactory;
import com.hmall.api.trade.po.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author: wqy
 * @Date: 2025/09/04 11:44
 * @Description:
 */
@FeignClient(name="trade-service",path = "/orders",fallbackFactory = TradeClientFallbackFactory.class)
public interface TradeClient {
    @PutMapping
    void updateById(@RequestBody Order order);
}
